home *** CD-ROM | disk | FTP | other *** search
- regc(0, "TFACTOR")
-
- pshader("
-
- ps_1_1
-
- def c1, 0, 1, 0, 0
-
- tex t0 ;spot UV
- tex t1 ;spoz Z
- tex t2 ;Detail
- tex t3 ;road
-
- dp3 r1.rgb, c1, t2
- +mul r1.a, t0.b, t1.b ;light range
-
- mul r0.rgb, r1.a, c0 ;color light
- +mov_x4_sat r0.a, t3.a ;blend mask extraction
-
- lrp r1, r0.a, t3, r1 ;road blend detail
-
- mul r0.rgb, r0, r1
- +mov r0.a, c0.a
-
- ")
-
-